<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@page import="com.jiuqi.util.ReturnObject"%>
<%@page import="com.qs.service.RecordRuntimeService"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	ReturnObject retObj = null;
	String retInfo = "";
	String actionType = request.getParameter("actionType");
	retObj = RecordRuntimeService.operate(request,pageContext);
	if(actionType == null) {
		if(!retObj.errored()){
			retInfo = "上传成功!";
		}else {
			retInfo = retObj.getErrorMessage();
		}
	}else if("delBatch".equals(actionType)) {
		retObj = RecordRuntimeService.removeBatch(request, response, out);
		if(!retObj.errored()){
			retInfo = "删除成功!";
		}else {
			retInfo = retObj.getErrorMessage();
		}
	}else if("modifyInfo".equals(actionType)) {
		retObj = RecordRuntimeService.modify(request, response, out);
		if(!retObj.errored()){
			retInfo = "修改成功!";
		}else {
			retInfo = retObj.getErrorMessage();
		}
	}
%>
<script>
<%
	if(retObj != null && retObj.errored()) {
%>
	    parent.showError("<%=retInfo%>");
<%
	}else{
%>
		parent.showInfo("<%=retInfo%>");
<%	
	}
%>
</script>
